<?php



class sfSejourMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.sfSejourMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('sf_sejour');
		$tMap->setPhpName('sfSejour');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('PATIENT_ID', 'PatientId', 'int', CreoleTypes::INTEGER, 'sf_patient', 'ID', true, null);

		$tMap->addForeignKey('CHAMBRE_ID', 'ChambreId', 'int', CreoleTypes::INTEGER, 'sf_chambre', 'ID', true, null);

		$tMap->addColumn('MOTIF', 'Motif', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('DATE_DEBUT', 'DateDebut', 'int', CreoleTypes::DATE, false, null);

		$tMap->addColumn('DATE_FIN', 'DateFin', 'int', CreoleTypes::DATE, false, null);

		$tMap->addColumn('REMARQUES', 'Remarques', 'string', CreoleTypes::LONGVARCHAR, false, null);

	} 
} 